﻿@using Entity.BBC
@{
    Layout = null;
    ViewBag.Title = "Index";
    List<ProductCategory> productCategoryList = ViewBag.productCategoryList;
}

<html>
<head>
    <title>分析系统概况</title>
    <link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="~/Content/js/jquery-1.10.2.min.js"></script>
    <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="http://bootboxjs.com/bootbox.js"></script>

    <script src="~/Content/js/plugs/My97DatePicker/WdatePicker.js"></script>
    <!-- ECharts文件引入 -->
    <script src="~/Content/js/plugs/echarts-2.2.7/echarts-all.js" type="text/javascript"></script>
    <script src="~/Content/js/baseEchartOption.js" type="text/javascript"></script>

    <style type="text/css">
        .analysisBox {
            text-align: center;
            border: 1px solid #ece6e6;
            width: 80%;
            margin: auto;
        }

            .analysisBox label.analysisTitle {
                padding: 20px 0px;
                font-size: 18px;
                color: #524e4e;
            }

            .analysisBox div.analysisContainer {
                width: 100%;
                height: 400px;
            }

            .analysisBox .searchBar select, .analysisBox .searchBar input {
                margin-right: 20px;
            }
    </style>
</head>
<body>
    <nav class="navbar" role="navigation">
        <div class="navbar-header">
            <a class="navbar-brand" href="javascript:void(0);">分析系统</a>
        </div>
        <ul class="nav nav-pills nav-justified">
            <li class="dropdown">
                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                    产品分析 <span class="caret"></span>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="#product_sale_sort_div">产品销售额排行</a></li>
                    <li><a href="#product_area_sort_div">地区销售额排行</a></li>
                    <li class="divider"></li>
                    <li><a href="#product_property_sale_div">产品销售利润分析</a></li>
                    <li><a href="#product_area_sale_div">地区销售额分析</a></li>
                    <li><a href="#product_retrun_good_div">退货产品分析</a></li>
                </ul>
            </li>

            <li class="dropdown">
                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                    会员分析 <span class="caret"></span>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="#userInfo_from_plateform_div">会员来源分析</a></li>
                    <li><a href="#userInfo_increase_tendency_div">会员新增趋势</a></li>
                    <li><a href="#userInfo_activity_analysis_div">活跃用户分析</a></li>
                    <li class="divider"></li>
                    <li><a href="#userInfo_age_analysis_div">会员年龄分析</a></li>
                    <li><a href="#userInfo_sex_analysis_div">会员性别分析</a></li>
                    <li class="divider"></li>
                    <li><a href="#userInfo_saleMan_increase_tendency_div">业务员新增趋势</a></li>
                    <li><a href="#userInfo_saleMan_member_sort_div">业务员下挂会员排行</a></li>
                    <li><a href="#userInfo_saleMan_income_sort_div">业务员收益排行</a></li>
                </ul>
            </li>

            <li class="dropdown">
                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                    订单分析 <span class="caret"></span>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="#order_plateform_income_div">订单收益</a></li>
                    <li><a href="#order_increase_tendency_div">订单收益趋势</a></li>
                </ul>
            </li>

        </ul>
    </nav>

    <!-- 为ECharts准备一个具备大小（宽高）的Dom -->
    <!--产品-->
    <div id="product_sale_sort_div" class="analysisBox">
        <label class="analysisTitle">产品销售额排行</label>

        <div class="searchBar">
            <form class="form-inline" role="form">
                <label class="control-label">所属平台：</label>
                <select class="form-control plateform">
                    <option value="0">全部</option>
                    <option value="1">爱农人</option>
                    <option value="2">趣你加</option>
                </select>

                <label class="control-label">产品分类：</label>
                <select class="form-control category">
                    <option value="0">全部</option>
                    @foreach (ProductCategory category in productCategoryList) 
                    { 
                        <option value="@category.id">@category.name</option>
                    }

                </select>

                <label class="control-label">取前x条：</label>
                <input class="form-control" type="text" value="10" onkeyup="this.value=this.value.replace(/\D/g,'')"
                       maxlength="2" style="width:50px;" />
                <button type="button" class="form-control" onclick="productSaleSort()">查询</button>
            </form>
        </div>

        <div id="product_sale_sort" class="analysisContainer"></div>
    </div>
    <div id="product_area_sort_div" class="analysisBox">
        <label class="analysisTitle">地区销售额排行</label>

        <div class="searchBar">
            <form class="form-inline" role="form">
                <label class="control-label">所属平台：</label>
                <select class="form-control plateform">
                    <option value="0">全部</option>
                    <option value="1">爱农人</option>
                    <option value="2">趣你加</option>
                </select>

                <label class="control-label">取前x条：</label>
                <input class="form-control" type="text" value="10" onkeyup="this.value=this.value.replace(/\D/g,'')"
                       maxlength="2" style="width:50px;" />
                <button type="button" class="form-control" onclick="productAreaSort()">查询</button>
            </form>
        </div>

        <div id="product_area_sort" class="analysisContainer"></div>
    </div>
    <div id="product_property_sale_div" class="analysisBox">
        <label class="analysisTitle">产品销售利润分析</label>

        <div class="searchBar">
            <form class="form-inline" role="form">
                <label class="control-label">所属平台：</label>
                <select class="form-control plateform">
                    <option value="0">全部</option>
                    <option value="1">爱农人</option>
                    <option value="2">趣你加</option>
                </select>
                <button type="button" class="form-control" onclick="productPropertySale()">查询</button>
            </form>
        </div>

        <div id="product_property_sale" class="analysisContainer"></div>
    </div>
    <div id="product_area_sale_div" class="analysisBox">
        <label class="analysisTitle">地区销售额分析</label>

        <div class="searchBar">
            <form class="form-inline" role="form">
                <label class="control-label">所属平台：</label>
                <select class="form-control plateform">
                    <option value="0">全部</option>
                    <option value="1">爱农人</option>
                    <option value="2">趣你加</option>
                </select>
                <button type="button" class="form-control" onclick="productAreaSale()">查询</button>
            </form>
        </div>

        <div id="product_area_sale" class="analysisContainer"></div>
    </div>
    <div id="product_retrun_good_div" class="analysisBox">
        <label class="analysisTitle">退货产品分析</label>

        <div class="searchBar">
            <form class="form-inline" role="form">
                <label class="control-label">所属平台：</label>
                <select class="form-control plateform">
                    <option value="0">全部</option>
                    <option value="1">爱农人</option>
                    <option value="2">趣你加</option>
                </select>

                <label class="control-label">产品分类：</label>
                <select class="form-control category">
                    <option value="0">全部</option>
                    @foreach (ProductCategory category in productCategoryList)
                    {
                        <option value="@category.id">@category.name</option>
                    }
                </select>

                <label class="control-label">取前x条：</label>
                <input class="form-control" type="text" value="10" onkeyup="this.value=this.value.replace(/\D/g,'')"
                       maxlength="2" style="width:50px;" />
                <button type="button" class="form-control" onclick="productRetrunGood()">查询</button>
            </form>
        </div>

        <div id="product_retrun_good" class="analysisContainer"></div>
    </div>

    <!--会员-->
    <div id="userInfo_from_plateform_div" class="analysisBox">
        <label class="analysisTitle">会员来源分析</label>
        <div id="userInfo_from_plateform" class="analysisContainer"></div>
    </div>
    <div id="userInfo_increase_tendency_div" class="analysisBox">
        <label class="analysisTitle">会员新增趋势</label>

        <div class="searchBar">
            <form class="form-inline" role="form">
                <label class="control-label">所属平台：</label>
                <select class="form-control plateform">
                    <option value="0">全部</option>
                    <option value="1">爱农人</option>
                    <option value="2">趣你加</option>
                </select>
                <label class="control-label">时间：</label>
                <select class="form-control timeType">
                    <option value="1">年</option>
                    <option value="2">月</option>
                    <option value="3">日</option>
                </select>
                <button type="button" class="form-control" onclick="userInfoIncreaseTendency()">查询</button>
            </form>
        </div>

        <div id="userInfo_increase_tendency" class="analysisContainer"></div>
    </div>
    <div id="userInfo_activity_analysis_div" class="analysisBox">
        <label class="analysisTitle">活跃用户分析</label>

        <div class="searchBar">
            <form class="form-inline" role="form">
                <label class="control-label">活动时间</label>
                <input type="text" runat="server" onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                       class="form-control Wdate" id="beginTime_userInfo" style="padding: 15px 0px;margin-right:0px;" />
                <label class="control-label">至</label>
                <input type="text" runat="server"
                       onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'beginTime_userInfo\')}'})"
                       class="form-control Wdate" id="endTime_userInfo" style="padding: 15px 0px;margin-right:0px;" />
                <label class="control-label">登录过且消费满xxx元</label>
                <input class="form-control" id="consumption_userInfo" value="0" onkeyup="this.value=this.value.replace(/\D/g,'')" style="width:80px;" />

                <button type="button" class="form-control" onclick="userInfoActivityAnalysis()">查询</button>
            </form>
        </div>

        <div id="userInfo_activity_analysis" class="analysisContainer"></div>
    </div>
    <div id="userInfo_age_analysis_div" class="analysisBox">
        <label class="analysisTitle">会员年龄分析</label>

        <div class="searchBar">
            <form class="form-inline" role="form">
                <label class="control-label">所属平台：</label>
                <select class="form-control plateform">
                    <option value="0">全部</option>
                    <option value="1">爱农人</option>
                    <option value="2">趣你加</option>
                </select>
                <button type="button" class="form-control" onclick="userInfoAgeAnalysis()">查询</button>
            </form>
        </div>

        <div id="userInfo_age_analysis" class="analysisContainer"></div>
    </div>
    <div id="userInfo_sex_analysis_div" class="analysisBox">
        <label class="analysisTitle">会员性别分析</label>

        <div class="searchBar">
            <form class="form-inline" role="form">
                <label class="control-label">所属平台：</label>
                <select class="form-control plateform">
                    <option value="0">全部</option>
                    <option value="1">爱农人</option>
                    <option value="2">趣你加</option>
                </select>
                <button type="button" class="form-control" onclick="userInfoSexAnalysis()">查询</button>
            </form>
        </div>

        <div id="userInfo_sex_analysis" class="analysisContainer"></div>
    </div>
    <div id="userInfo_saleMan_increase_tendency_div" class="analysisBox">
        <label class="analysisTitle">业务员新增趋势</label>

        <div class="searchBar">
            <form class="form-inline" role="form">
                <label class="control-label">时间：</label>
                <select class="form-control timeType">
                    <option value="1">年</option>
                    <option value="2">月</option>
                    <option value="3">日</option>
                </select>
                <button type="button" class="form-control" onclick="userInfoSaleManIncreaseTendency()">查询</button>
            </form>
        </div>

        <div id="userInfo_saleMan_increase_tendency" class="analysisContainer"></div>
    </div>
    <div id="userInfo_saleMan_member_sort_div" class="analysisBox">
        <label class="analysisTitle">业务员下挂会员排行</label>
        <div id="userInfo_saleMan_member_sort" class="analysisContainer"></div>
    </div>
    <div id="userInfo_saleMan_income_sort_div" class="analysisBox">
        <label class="analysisTitle">业务员收益排行</label>

        <div class="searchBar">
            <form class="form-inline" role="form">
                <label class="control-label">时间</label>
                <input type="text" runat="server" onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                       class="form-control Wdate" id="beginTime_saleman" style="padding: 15px 0px;margin-right:0px;" />
                <label class="control-label">至</label>
                <input type="text" runat="server"
                       onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'beginTime_saleman\')}'})"
                       class="form-control Wdate" id="endTime_saleman" style="padding: 15px 0px;" />

                <button type="button" class="form-control" onclick="userInfoSaleManIncomeSort()">查询</button>
            </form>
        </div>

        <div id="userInfo_saleMan_income_sort" class="analysisContainer"></div>
    </div>


    <!--订单-->
    <div id="order_plateform_income_div" class="analysisBox">
        <label class="analysisTitle">订单收益</label>
        <div id="order_plateform_income" class="analysisContainer"></div>
    </div>
    <div id="order_increase_tendency_div" class="analysisBox">
        <label class="analysisTitle">订单收益趋势</label>

        <div class="searchBar">
            <form class="form-inline" role="form">
                <label class="control-label">所属平台：</label>
                <select class="form-control plateform">
                    <option value="0">全部</option>
                    <option value="1">爱农人</option>
                    <option value="2">趣你加</option>
                </select>
                <label class="control-label">时间：</label>
                <select class="form-control timeType">
                    <option value="1">年</option>
                    <option value="2">月</option>
                    <option value="3">日</option>
                </select>

                <button type="button" class="form-control" onclick="orderIncreaseTendency()">查询</button>
            </form>
        </div>

        <div id="order_increase_tendency" class="analysisContainer"></div>
    </div>

</body>
</html>

<script type="text/javascript">

    //产品
    var product_sale_sort = echarts.init(document.getElementById('product_sale_sort'));
    var product_area_sort = echarts.init(document.getElementById('product_area_sort'));
    var product_property_sale = echarts.init(document.getElementById('product_property_sale'));
    var product_area_sale = echarts.init(document.getElementById('product_area_sale'));
    var product_retrun_good = echarts.init(document.getElementById('product_retrun_good'));

    //会员
    var userInfo_from_plateform = echarts.init(document.getElementById('userInfo_from_plateform'));
    var userInfo_increase_tendency = echarts.init(document.getElementById('userInfo_increase_tendency'));
    var userInfo_activity_analysis = echarts.init(document.getElementById('userInfo_activity_analysis'));
    var userInfo_age_analysis = echarts.init(document.getElementById('userInfo_age_analysis'));
    var userInfo_sex_analysis = echarts.init(document.getElementById('userInfo_sex_analysis'));
    var userInfo_saleMan_increase_tendency = echarts.init(document.getElementById('userInfo_saleMan_increase_tendency'));
    var userInfo_saleMan_member_sort = echarts.init(document.getElementById('userInfo_saleMan_member_sort'));
    var userInfo_saleMan_income_sort = echarts.init(document.getElementById('userInfo_saleMan_income_sort'));

    //订单
    var order_plateform_income = echarts.init(document.getElementById('order_plateform_income'));
    var order_increase_tendency = echarts.init(document.getElementById('order_increase_tendency'));

    //产品
    function productSaleSort() {
        var plateform = $("#product_sale_sort_div .searchBar select.plateform").val();
        var category = $("#product_sale_sort_div .searchBar select.category").val();
        var topNum = $("#product_sale_sort_div .searchBar input").val();

        $.post("/Analysis/ProductSaleSort", {
            plateform: plateform,
            category: category,
            topNum: topNum
        }, function (result) {
            var temp = result.Body;
            var nameList = temp.NameList;
            var dataList = temp.DataList;
            var legendList = temp.LegendList;
            var title = "";

            // var product_sale_sort_option=getBarAndLineOption(title, legendList, nameList, dataList,true,false);

            var product_sale_sort_option = getBarOption(title, legendList, nameList, dataList, false, true, false)

            product_sale_sort.setOption(product_sale_sort_option, true);
        })
    }

    function productAreaSort() {
        var plateform = $("#product_area_sort_div .searchBar select.plateform").val();
        var topNum = $("#product_area_sort_div .searchBar input").val();

        $.post("/Analysis/ProductAreaSort", {plateform: plateform, topNum: topNum}, function (result) {

            var temp = result.Body;
            var nameList = temp.NameList;
            var dataList = temp.DataList;
            var legendList = temp.LegendList;
            var title = "";

            var product_area_sort_option = getBarAndLineOption(title, legendList, nameList, dataList, true, false);
            product_area_sort.setOption(product_area_sort_option, true);
        })
    }

    function productPropertySale() {
        var plateform = $("#product_property_sale_div .searchBar select.plateform").val();

        $.post("/Analysis/ProductPropertySale", {plateform: plateform}, function (result) {
            var temp = result.Body;
            var dataList = temp.DataList;
            var legendList = temp.LegendList;
            var title = "";

            var product_property_sale_option = getScatterOption(title, legendList, dataList,true, false);
            product_property_sale.setOption(product_property_sale_option, true);
        })
    }

    function productAreaSale() {
        var plateform = $("#product_area_sale_div .searchBar select.plateform").val();

        $.post("/Analysis/ProductAreaSale", {plateform: plateform}, function (result) {

            var temp = result.Body;
            var mapType = temp.MapType;
            var dataList = temp.DataList;
            var legendList = temp.LegendList;
            var min = temp.Min;
            var max = temp.Max;
            var title = "区域销售分析";
            var seriesName = "销售额";

            var product_area_sale_option = getNationAndProvinceAndCityMapOption(title, mapType, min, max, legendList, dataList);
            product_area_sale.setOption(product_area_sale_option, true);
            MapSelect(product_area_sale, product_area_sale_option, seriesName, plateform);
        })
    }

    function productRetrunGood() {
        var plateform = $("#product_retrun_good_div .searchBar select.plateform").val();
        var category = $("#product_retrun_good_div .searchBar select.category").val();
        var topNum = $("#product_retrun_good_div .searchBar input").val();

        $.post("/Analysis/ProductRetrunGood", {
            plateform: plateform,
            category: category,
            topNum: topNum
        }, function (result) {

            var temp = result.Body;
            var nameList = temp.NameList;
            var dataList = temp.DataList;
            var legendList = temp.LegendList;
            var title = "";

            var product_retrun_good_option = getBarAndLineOption(title, legendList, nameList, dataList, true, false);

            product_retrun_good.setOption(product_retrun_good_option, true);
        })
    }

    //会员
    function userInfoFromPlateform() {
        $.post("/Analysis/UserInfoFromPlateform", {}, function (result) {
            var temp = result.Body;
            var title = "";
            var seriesName = "会员来源";
            var legendList = temp.LegendList;
            var dataList = temp.DataList;

            var userInfo_from_plateform_option = getPieOption(title, seriesName, legendList, dataList);
            userInfo_from_plateform.setOption(userInfo_from_plateform_option, true);
        })
    }

    function userInfoIncreaseTendency() {
        var plateform = $("#userInfo_increase_tendency_div .searchBar select.plateform").val();
        var timeType = $("#userInfo_increase_tendency_div .searchBar select.timeType").val();

        $.post("/Analysis/UserInfoIncreaseTendency", {plateform: plateform, timeType: timeType}, function (result) {
            var temp = result.Body;
            var nameList = temp.NameList;
            var dataList = temp.DataList;
            var legendList = temp.LegendList;
            var title = "";

            var userInfo_increase_tendency_option = getBarAndLineOption(title, legendList, nameList, dataList, true, true);
            userInfo_increase_tendency.setOption(userInfo_increase_tendency_option, true);
        })
    }

    function userInfoActivityAnalysis() {
        var beginTime=$("#userInfo_activity_analysis_div .searchBar #beginTime_userInfo").val();
        var endTime=$("#userInfo_activity_analysis_div .searchBar #endTime_userInfo").val();
        var amount=$("#userInfo_activity_analysis_div .searchBar #consumption_userInfo").val();

        $.post("/Analysis/UserInfoActivityAnalysis", {beginTime:beginTime,endTime:endTime,amount:amount}, function (result) {
            var temp = result.Body;
            var seriesNameList = temp.SeriesNameList;
            var dataList = temp.DataList;
            var legendList = temp.LegendList;
            var title = "";

            var userInfo_activity_analysis_option = getDoublePieOption(title,seriesNameList, legendList,dataList);
            userInfo_activity_analysis.setOption(userInfo_activity_analysis_option, true);
        })
    }

    function userInfoAgeAnalysis() {
        var plateform = $("#userInfo_age_analysis_div .searchBar select.plateform").val();

        $.post("/Analysis/UserInfoAgeAnalysis", {plateform: plateform}, function (result) {
            var temp = result.Body;
            var seriesNameList = temp.SeriesNameList;
            var dataList = temp.DataList;
            var legendList = temp.LegendList;
            var title = "";

            var userInfo_age_analysis_option =  getDoublePieOption(title,seriesNameList, legendList,dataList);
            userInfo_age_analysis.setOption(userInfo_age_analysis_option, true);
        })
    }

    function userInfoSexAnalysis() {
        var plateform = $("#userInfo_sex_analysis_div .searchBar select.plateform").val();

        $.post("/Analysis/UserInfoSexAnalysis", {plateform: plateform}, function (result) {
            var temp = result.Body;
            var legendList = temp.LegendList;
            var dataList = temp.DataList;
            var title = "";
            var seriesName = "性别";

            var userInfo_sex_analysis_option = getPieOption(title, seriesName, legendList, dataList);
            userInfo_sex_analysis.setOption(userInfo_sex_analysis_option, true);
        })
    }

    function userInfoSaleManIncreaseTendency() {
        var timeType = $("#userInfo_saleMan_increase_tendency_div .searchBar select.timeType").val();

        $.post("/Analysis/UserInfoSaleManIncreaseTendency", {timeType: timeType}, function (result) {
            var temp = result.Body;
            var nameList = temp.NameList;
            var dataList = temp.DataList;
            var legendList = temp.LegendList;
            var title = "";

            var userInfo_saleMan_increase_tendency_option = getBarAndLineOption(title, legendList, nameList, dataList, true, true);
            userInfo_saleMan_increase_tendency.setOption(userInfo_saleMan_increase_tendency_option, true);
        })
    }

    function userInfoSaleManMemberSort() {
        $.post("/Analysis/UserInfoSaleManMemberSort", {}, function (result) {
            var temp = result.Body;
            var nameList = temp.NameList;
            var dataList = temp.DataList;
            var legendList = temp.LegendList;
            var title = "";

            var userInfo_saleMan_member_sort_option = getBarOption(title, legendList, nameList, dataList, true, true,false);
            userInfo_saleMan_member_sort.setOption(userInfo_saleMan_member_sort_option, true);
        })
    }

    function userInfoSaleManIncomeSort() {
        var beginTime = $("#userInfo_saleMan_income_sort_div .searchBar #beginTime_saleman").val();
        var endTime = $("#userInfo_saleMan_income_sort_div .searchBar #endTime_saleman").val();

        userInfo_saleMan_income_sort.showLoading({
            text: "图表数据正在努力加载..."
        }); // 这里的代码 在页面完全加载完前（包括AJAX数据没返回前）就跟不执行一样

        //$.post("/Analysis/UserInfoSaleManIncomeSort", {beginTime: beginTime, endTime: endTime}, function (result) {
        //    var temp = result.Body;
        //    var nameList = temp.NameList;
        //    var dataList = temp.DataList;
        //    var legendList = temp.LegendList;
        //    var title = "";

        //    var userInfo_saleMan_Income_sort_option = getBarOption(title, legendList, nameList, dataList, true, true,false);
        //    userInfo_saleMan_income_sort.hideLoading();
        //    userInfo_saleMan_income_sort.setOption(userInfo_saleMan_Income_sort_option, true);
        //})
    }

    //订单
    function orderPlateformIncome() {
        $.post("/Analysis/OrderPlateformIncome", {}, function (result) {
            var temp = result.Body;
            var legendList = temp.LegendList;
            var dataList = temp.DataList;
            var title = "平台订单收益比";
            var seriesName = "平台收益";

            var order_plateform_income_option = getPieOption(title, seriesName, legendList, dataList);
            order_plateform_income.setOption(order_plateform_income_option, true);
        })
    }

    function orderIncreaseTendency() {
        var plateform = $("#order_increase_tendency_div .searchBar select.plateform").val();
        var timeType = $("#order_increase_tendency_div .searchBar select.timeType").val();

        $.post("/Analysis/OrderIncreaseTendency", {plateform: plateform, timeType: timeType}, function (result) {
            var temp = result.Body;
            var nameList = temp.NameList;
            var dataList = temp.DataList;
            var legendList = temp.LegendList;
            var title = "";

            var order_increase_tendency_option = getBarAndLineOption(title, legendList, nameList, dataList, true, true);
            order_increase_tendency.setOption(order_increase_tendency_option, true);

        })
    }


    $(function () {

        productSaleSort();
        productAreaSort();
        productPropertySale();
        productAreaSale();
        productRetrunGood();

        userInfoFromPlateform();
        userInfoIncreaseTendency();
        userInfoActivityAnalysis();
        userInfoAgeAnalysis();
        userInfoSexAnalysis();
        userInfoSaleManIncreaseTendency();
        userInfoSaleManMemberSort();
        userInfoSaleManIncomeSort();

        orderPlateformIncome();
        orderIncreaseTendency();
    })

</script>

